package com.ftg.learn.chapter10.base02.mapper;

import com.ftg.learn.chapter10.base02.entity.TeacherEntity;
import com.ftg.learn.chapter10.base02.mapper.sql.CreateSql;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.SelectProvider;

import java.util.List;
import java.util.Map;

/**
 * 描述     老师接口
 *
 * @author 布衣
 * @date 2024/9/11
 */
public interface TeachersBase02 {

    @SelectProvider(type = CreateSql.class, method = "listSql")
    List<TeacherEntity> list(@Param("tname") String tname, @Param("pageNo") Integer pageNo, @Param("pageSize") Integer pageSize);


    @SelectProvider(type = CreateSql.class, method = "countSql")
    int count(@Param("tname") String tname);
}
